/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package veluanasoft.modelo;

import java.util.ArrayList;

/**
 *
 * @author Ali Kate
 */
public class Invoice {

    private Buyer buyer;
    private ArrayList<Item> list;

    public Invoice(String buyerName,String buyerAddress) {
        this.buyer = new Buyer(buyerName, buyerAddress);
        this.list = new ArrayList<Item>();
    }

    public String getBuyerName(){
        return buyer.getBuyerName();
    }

    public String getBuyerAddress(){
        return buyer.getBuyerAddress();
    }

    public void addItem(String typeOfWood, int quantity){
        list.add(new Item(typeOfWood, quantity));
    }

    public ArrayList<Item> arrayItems() {
        return list;
    }
}
